home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
DELPHI32
/
DEBUG
/
STAKWK10
/
STAKWALK.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-05-10
|
2KB
|
71 lines
unit StakWalk;
{$D- Can't have debug info here! }
{ THIS VERSION IS NOT FOR DISTRIBUTION!!!! }
{ Changes : changed so that exceptions in exceptions turn it off }
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls;
type
TWalkerDialog = class(TForm)
OKBtn: TButton;
CancelBtn: TButton;
Bevel1: TBevel;
Active: TCheckBox;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
procedure FormActivate(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
WalkerDialog: TWalkerDialog;
implementation
uses StakLow;
{$R *.DFM}
function Continue:boolean; far;
begin
result := false;
try
WalkerDialog.ShowModal;
if WalkerDialog.ModalResult = mrOK then
begin
WalkerActive := WalkerDialog.Active.Checked;
if WalkerActive then
result := true;
end;
except
result := false;
end;
end;
procedure TWalkerDialog.FormActivate(Sender: TObject);
begin
Active.Checked := WalkerActive;
end;
procedure TWalkerDialog.FormCreate(Sender: TObject);
begin
if Debughook <> 0 then
begin
Application.OnException := StackWalker.HandleException;
ContinueFunc := Continue;
if not FoundMap then
Application.MessageBox('Warning: StackWalker was unable to find a detailed .MAP file. You''ll get a lot of bad guesses!',
'StackWalker',mb_OK+mb_IconWarning);
end;
end;
end.